import request from '@/utils/request'

/**
 * 获取系统配置
 * @returns 
 */
export const getSystemConfig = (params?: any) => request.get({ url: '/adminapi/system.config/lists', params })

/**
 * 新增配置组
 * @param data 
 * @returns 
 */
export const addSystemConfigGroup = (data: any) => request.post({ url: '/adminapi/system.config/addGroup', data })

/**
 * 新增配置
 * @param data 
 * @returns 
 */
export const addSystemConfig = (data: any) => request.post({ url: '/adminapi/system.config/save', data })

/**
 * 保存配置
 * @param data 
 * @returns 
 */
export const saveSystemConfig = (data: any) => request.put({ url: '/adminapi/system.config/update', data })

/**
 * 删除配置
 * @param data 
 * @returns 
 */
export const deleteSystemConfig = (data: any) => request.delete({ url: '/adminapi/system.config/delete', data })
